package com.teamtgv.shareshark;

import android.content.Context;
import android.graphics.Color;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

public class Toaster {

	public static void showToast(Context context, String message) {
		Toast toast = Toast.makeText(context, message, Toast.LENGTH_SHORT);
		LinearLayout toastLayout = (LinearLayout) toast.getView();
	    TextView toastText = (TextView) toastLayout.getChildAt(0);
	    toastText.setTextColor(Color.WHITE);
	    toastText.setBackgroundColor(Color.DKGRAY);
		toast.show();
	}
}
